/*
 * @Description: 接口
 * @Autor: lcz
 * @LastEditors: lcz
 * @LastEditTime: 2023-10-09 09:48:59
 */
import request from "@/utils/request";

/** 手机号密码登录 */
export async function loginByPassword(data?: { [key: string]: any }) {
  return request<USER.Login>({
    url: `/angine/ums/userLogin/loginByPassword`,
    method: "POST",
    data
  });
}

//获取用户信息
export async function userDetail() {
  return request<USER.UserInfo>({
    url: "/angine/ums/user/detail",
    method: "POST"
  });
}
